//
//  XLCatPlateInputViewCell.m
//  XLCarPlateInputViewDemo
//
//  Created by ilongge on 2020/10/21.
//  Copyright © 2020 admin. All rights reserved.
//

#import "XLCarPlateInputViewCell.h"
#import "XLCarPlateKeyBoardDefine.h"

@interface XLCarPlateInputViewCell()

@property (weak, nonatomic) IBOutlet UILabel *textTitleLabel;

@end

@implementation XLCarPlateInputViewCell 

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    self.layer.cornerRadius = 4;
    self.clipsToBounds = YES;
}

- (void)configText:(NSString *)title andActive:(BOOL)isActive
{
    self.textTitleLabel.text = title;
    if (isActive && ![SpecilChars isEqualToString:title])
    {
        self.textTitleLabel.textColor =  UIColorFromHex(0x333333);
    }
    else
    {
        self.textTitleLabel.textColor = UIColorFromHex(0xD4D4D4);
    }
}

@end
